<?php
$r = M("notice")->order("id desc")->find();
?>
<if condition="$_SESSION['user_id'] neq '' ">
<div class="notice" >
	<div class="noticCon"><h3>网站最新公告 <a class="iconfont closeNotice"></a></h3>
		<ul>
			<li>
				<a href="{:U('Users/NoticeDetail',array('id'=>$r['id']))}">
					<i></i>{$r['title']}
					<br>[{$r['create_time']}]
				</a>
			</li>
		</ul>
	</div>
</div>
 <else />
 </if>
